﻿namespace explicit_显式转换_
{
    internal class MouseCode
    {
        public int MouseValue;

        public static explicit operator KeyCode(MouseCode c)
        {
            KeyCode key = new KeyCode();
            key.KeyValue = c.MouseValue;
            return key;
        }
    }
}